package com.dx.membercenterbe.common;

import lombok.Data;

import java.io.Serializable;

/**
 * 通用返回类
 *
 * @param <T>
 * @author dengxiao
 */
@Data
public class BaseResponse<T> implements Serializable {
    private int code;//0-成功
    private T data;
    private String message;
    private String description;

    public BaseResponse(int code, T data, String message,String decription) {
        this.code = code;
        this.data = data;
        this.message = message;
        this.description = decription;
    }


}
